package com.yuanfeng.payment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.payment.entity.PayCardInfoEntity;
import com.yuanfeng.payment.vo.PayCardBaseInfoVO;
import com.yuanfeng.payment.vo.PayCardInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.yuanfeng.payment.entity.PayCardInfo
 */
@Mapper
public interface PayCardInfoMapper extends BaseMapper<PayCardInfoEntity> {

    /**
     * 更新卡
     *
     * @param mapCard
     * @return
     */
    boolean updateRechargeCard(Map<String, Object> mapCard);


    /**
     * 导出已完成办卡
     * @param param
     * @return
     */
    List<PayCardBaseInfoVO> execl(@Param(value="param")Map<String, Object> param);

    /**
     * 更新支付卡信息
     *
     * @param payCardInfoResult
     */
    void updatePayCardInfoBase(@Param("payCardInfoResult") PayCardInfoVO payCardInfoResult);


    /**
     * 新增支付卡信息
     *
     * @param cardInfo2
     * @param id
     */
    void insetPayCardInfoBase(@Param("list") List<PayCardInfoVO> cardInfo2, @Param("id") Integer id);
}




